<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>主页</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, target-densitydpi=medium-dpi, user-scalable=1">
    <link rel="stylesheet" type="text/css" href="${gPath}/styles/dingtalk/style/mobility.css"/>
    <%@ include file="jsapi-header.jsp"%>
    <script type="text/javascript" src="${gPath}/scripts/jquery/jquery-1.8.1.min.js"></script>
    <script type="text/javascript">
        dd.ready(function() {
            dd.biz.navigation.setRight({show: false});
            //返回按钮(android)
            document.addEventListener('backbutton', function(e) {
                e.preventDefault();
                dd.biz.navigation.close();
            }, false);
        });
    </script>
</head>
<body>
<ul class="aa">
    <c:choose>
        <c:when test="${fn:length(menus)>0}">
            <c:forEach var="menu" items="${menus}">
                <li class="m"><a href="${gPath}${menu.url}?dd_nav_bgcolor=FF5E97F6"><img src="${gPath}/styles/dingtalk/image${menu.pic}"><p>${menu.name}</p></a></li>
            </c:forEach>
        </c:when>
        <c:otherwise>
            <h1>您还没有配置菜单</h1>
        </c:otherwise>
    </c:choose>
</ul>
</body>
</html>